// .txt

beginzonescript;

variables;

short im_hostile = 0;
short last_abil;
short counter = 0;
short set_ter1 = 0;

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

	set_name(3600,"Master Aurichalcum");
	set_name(3601,"Captain Sparl");
	set_name(3602,"Erud Mirwa");
	set_name(3603,"Trader Tsuenami");
	set_name(3604,"Builder Zmaray");
	set_name(3605,"Raiman");
	if (gf(36,16) == 4)
		erase_char(3605);
	set_name(3606,"Gan the Wanderer");
	set_name(3607,"Trader Haska");

	
	set_level(3642,2);
	set_level(3643,2);

//	set_attack_range(,);

//	add_ability(short which_char_or_group,short which_slot,short which_ability,0);

//	if (is_town_clear(ME))
//		clean_up_town();

	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
	//if ((set_ter1 == 0) && (gf(0,0) > 0)) {
	//	set_ter1 = 1;
	//	set_terrain(,,,);
	//	}
		
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3600,"You are here.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3600,"We will fight invaders.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3600,"We'll do our duty.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3600,"I answer to the Raasa.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3601,"Justice happens here.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3601,"Clean the cells.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3601,"Bring more gruel.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3601,"Hang up the prisoner.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3601,"Witness Rokaj justice.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3602,"We should have walls.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3602,"I'm a war mage.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3602,"Don't poke the brutes.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3602,"Must maintain them.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3602,"I fight for Etzae.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3603,"Why did they come after me?");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3603,"I took such care.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3603,"Bring contracts to me.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3603,"Stone is traded here.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3603,"Welcome, honored guest.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3604,"We are architects.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3604,"It is the art of the Rokaj.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3604,"We can't make walls.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3604,"Towers and forts.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3604,"Need a clan house?");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3605,"Injustice!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3605,"Someone help me.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3605,"Don't throw fruit.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3605,"Falsely accused.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3606,"Have an ale!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3606,"Let's trade tales.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3606,"I've explored the Rokaj.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3606,"I've mapped the wastes.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3606,"More adventures!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3607,"We're here to trade.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3607,"What do you need?");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3607,"I buy and sell.");


	//if (gf(,) < 2) {
	//	inc_flag(,,1);
	//	if (gf(,) == 2)
	//		begin_talk_mode();
	//	}

	//if (((is_combat()) && (tick_difference(last_abil,get_current_tick()) > 0)) || ((is_town()) && (tick_difference(last_abil,get_current_tick()) > 5))) {
	//	last_abil = get_current_tick();
	//	if ((gf(,) > 0) && (gf(,) < 100))
	//	}
break;

beginstate 10;
break;

beginstate 11;
break;

beginstate 12;
break;

beginstate 13;
break;

//	print_str("");
//	set_terrain_string_range(".",1);
//	set_terrain_string_range("The sign says - .",1);
